package com.hdj.chapter18;

/**
 * @description 司令部
 * @author hdj
 * @date 2017/12/14.
 */
public class Headquarters implements Command{
    private Soldier soldier;

    public Headquarters(Soldier soldier) {
        this.soldier = soldier;
    }

    /**
     * 传递命令
     */
    @Override
    public void exe() {
        soldier.action();
    }
}
